using System;
using System.Collections.Generic;
using System.Text;

namespace JayDubs
{
	class ContactSessionInformation
	{
		String jID = "";
		String username = "";
		String presence = "";
		String title = "";
		int speaking_status = -1;
		int number_voicemail = 0; // this should be 0 - n
		String last_message_time = "";
		String avatar = "";

		public ContactSessionInformation(String JID, String Username)
		{
			jID = JID;
			username = Username;
		}

		public ContactSessionInformation(String JID, String Username, String Presence, String Title, int SpeakingStatus, 
			int NumberOfVoiceMessages, String Avatar)
		{
			jID = JID;
			username = Username;
			presence = Presence;
			title = Title;
			speaking_status = SpeakingStatus;
			number_voicemail = NumberOfVoiceMessages;
			avatar = Avatar;
			last_message_time = "";

		}

		public String Avatar { get { return avatar; } }
		public String JID { get { return jID; } }
		public String Username { get { return username; } }
		public String Presence { get { return presence; } }
		public String Title { get { return title; } }
		public String LastMessageTime { get { return last_message_time; } }
		public int SpeakingStatus { get { return speaking_status; } }
		public int NumberVoicemail { get { return number_voicemail; } }

		public override bool Equals(object obj)
		{
			if (obj == null) return false;
			return (obj.GetType () == GetType ()) ? JID.Equals (((ContactSessionInformation) obj).JID) : false;
		}

		public override int GetHashCode()
		{
			return base.GetHashCode();
		}

	}
}
